<?php

    header('Content-Type: text/html; charset=utf-8');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:v="urn:schemas-microsoft-com:vml">
<head>
    
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Veibeskrivelser.</title>
   	<link type="text/css" rel="stylesheet" href="style.css" />
    
    <!-- Google maps-keyen funker bare på LOCALHOST (ikke på 127.0.0.1 engang!). Hvis vi skal legge opp på veven kreves det at
denne endres til riktig url. -->
    <script src="http://maps.google.com/?file=api&amp;v=2.x&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA" type="text/javascript"></script>
    <script type="text/javascript" src="js/getWeather.js">  </script>
    <script type="text/javascript" src="js/getRoute.js">  </script>
    
</head>


<body onload="initialize()" onunload="GUnload()">

<h2>Veibeskrivelser</h2>

<form> 
    <p>Velg dag</p>
    <select name="dag" onchange="setWeather(infoTable)">
    
    <option value="0">I dag</option>
    <option value="1">+1 Dag</option>
    <option value="2">+2 Dag</option>
    <option value="3">+3 Dag</option>
    </select>
</form>


<form action="#"
      onsubmit="setDirections(this.from.value, this.to.value); return false">
    
    <table>
    
    <tr>
    <th align="right">Fra:&nbsp;</th>
    
    <td><input type="text" size="25" id="fromAddress" name="from"
    value="Bergen, Norway" /></td>
    <th align="right">&nbsp;&nbsp;Til:&nbsp;</th>
    <td align="right"><input type="text" size="25" id="toAddress"
    name="to" value="Oslo, Norway" /></td>
    </tr>
    
    <tr>
    <td></td>
    <td><input name="submit" type="submit" value="Hent beskrivelse!" /></td>
    </tr>
    </table>
    
    
</form>

<br />
<table class="directions">
<tr>
<th>Kart</th>
</tr>

<tr>
<!--
<td valign="top"><div id="directions" style="width: 275px"></div></td>
-->
<td valign="top">
<div id="map_canvas" style="width: 833px; height:600px"></div>
</td>
</tr>
</table>
<div id="content"></div>

<div id="weather">User info will be listed here.</div>

</body>
</html>
